home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96b.txt / 000016_icon-group-sender _Thu Oct 10 18:02:15 1996.msg < prev    next >
Internet Message Format  |  1997-01-02  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 11 Oct 1996 16:30:29 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: Thu, 10 Oct 1996 18:02:15 GMT
  4. From: bezeau@jupiter.sun.csd.unb.ca (Larry Bezeau)
  5. Message-Id: <bezeau.63.844970535@jupiter.csd.unb.ca>
  6. Organization: New Brunswick Centre for Educational Administration
  7. Sender: icon-group-request@cs.arizona.edu
  8. Subject: Re: Parsing the Icon command line
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. >>h:\>c:\dos\command.com /c v:\cmdline.exe "A   B"  \"C   D\"
  12.  
  13. >That doesn't perform the test you want, since by invoking command.com
  14. >with /c on your shell's command line, you're giving your shell a chance
  15. >to munge the arguments *before* it passes them to command.com, which
  16. >then munges them further before passing them to Icon, which then munges
  17. >them further before passing them to your cmdline program.  To test
  18. >command.com for real, just invoke it as a subshell (use the command
  19. >  command
  20.  
  21. Agreed, now that you point it out.  I therefore repeated the test
  22. as you suggested and got the same results as shown below.  This test
  23. was done on a different computer that is strictly DOS, no OS/2.
  24.  
  25. h:\>command
  26.  
  27. Microsoft(R) MS-DOS(R) Version 6.20
  28.              (C)Copyright Microsoft Corp 1981-1993.
  29.  
  30. H:\>v:\cmdline.exe "A   B"   \"C   D\"
  31. A
  32. B
  33. C D
  34.  
  35. This should not be surprising since 4DOS is supposed to be compatible
  36. with and a superset of MS-DOS.  For reference purposes, the only
  37. operative statement of the ICON program, cmdline, is as follows:
  38.                   every write(&output,C[1 to *C])
  39. where C is the list of command line arguments.  The concern among
  40. others is the reduction of the three blanks between C and D to one.
  41.  
  42.                                   Larry Bezeau@UNB.Ca
  43.